﻿
//Author: 张亚涛
//createtime:2016-01-04 22:18:30
//Description: 

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class WashPirce
    {
        public WashPirce()
        { }
        public WashPirce(IDataReader reader)
        {
            _id = int.Parse(reader["ID"].ToString());
            if (reader["Project"] != DBNull.Value)
            {
                _project = reader["Project"].ToString();
            }
            if (reader["Pirce"] != DBNull.Value)
            {
                _pirce = decimal.Parse(reader["Pirce"].ToString());
            }
            if (reader["Times"] != DBNull.Value)
            {
                _times = int.Parse(reader["Times"].ToString());
            }
        }

        #region 数据库字段
        private int? _id;
        private string _project;
        private decimal? _pirce;
        private int? _times;
        #endregion

        #region 字段属性
        /// <summary>
        /// 
        /// </summary>
        public int? Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 项目
        /// </summary>
        public string Project
        {
            set { _project = value; }
            get { return _project; }
        }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal? Pirce
        {
            set { _pirce = value; }
            get { return _pirce; }
        }
        /// <summary>
        /// 工作时长(分钟)
        /// </summary>
        public int? Times
        {
            set { _times = value; }
            get { return _times; }
        }
        #endregion
    }
}